import {Component, OnInit} from '@angular/core';
import {Observable} from 'rxjs/Observable';
import {CanDeactivateInterface} from '../../service/guard/can-deactivate.Interface';

@Component({
  selector: 'app-monitor',
  templateUrl: './monitor.component.html',
  styleUrls: ['./monitor.component.css']
})
export class MonitorComponent implements OnInit, CanDeactivateInterface {

  constructor() {
  }

  ngOnInit() {
  }

  /**
   * 是否可以离开
   *
   *
   * @memberof DicComponent
   */
  canDeactivate(): boolean | Observable<boolean> | Promise<boolean> {
    return true;
  }

}
